/**
 * Copyright © 2025, ZhiYun Network Co.,Ltd. All rights reserved.
 * ZhiYun PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.itcoon.system.web.controller;

import com.itcoon.cloud.framework.webmvc.response.ApiResponse;
import com.itcoon.system.web.vo.DemoVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.security.PermitAll;

/**
 * ClassName:com.itcoon.system.web.controller.IndexController
 * Description:
 *
 * Date: 1/13/25 9:51 PM
 *
 * @author: miaoxia.yu
 *
 * @version 1.0.0
 */
@Tag(name = "首页")
@RequestMapping("/index")
@RequiredArgsConstructor
@RestController
public class IndexController {

    @PostMapping
    @Operation(summary="测试")
    @PermitAll
    public ApiResponse<DemoVO> index(@RequestBody DemoVO demoVO) {
        return ApiResponse.ok(demoVO);
    }

}
